﻿
@{
    ViewBag.Title = "ForgotPass3";
    Layout = "~/Views/shard/_layout.cshtml";
}
<div class="headertwo clearfloat" id="header">
    <a href="javascript:history.go(-1)" class="fl box-s"><i class="iconfont icon-arrow-l fl"></i></a>
    <p class="fl">输入新密码</p>
</div>

<div class="modify clearfloat" id="main">
    <ul>
        <li class="clearfloat">
            <input type="text" name="" id="pass" value="" placeholder="请输入新密码" class="sname snametwo" />
        </li>
        <li class="clearfloat">
            <input type="text" name="" id="pass1" value="" placeholder="请再次输入新密码" class="sname snametwo" />
        </li>
    </ul>
    <a href="#" id="saveXiu" class="pay-btn clearfloat">
        确认修改
    </a>
</div>
@section footerjs{
    <script type="text/javascript">
        $(function () {
            $('#saveXiu').click(function () {
                var pass = $('#pass').val();
                var pass2 = $('#pass1').val();
                $.ajax({
                    url: '/User/ForgotPass3',
                    data: { pass: pass, pass2: pass2 },
                    dataType: 'json',
                    type: 'post',
                    success: function (res) {
                        if (res.status == 'ok') {
                            window.location.href = "/User/ForgotPass4";
                        } else {
                            alert(res.errorMsg);
                        }
                    },
                    error: function () {
                        alert("网络请求错误");
                    }
                })
            })
        })
    </script>
}

